
import java.util.Arrays;
import java.util.Scanner;
 class Point {
    private int x, y;// x,y为点的坐标
    //求两点之间的距离
    public double distance(Point p1) {
        return Math.sqrt((p1.x -this.x)*(p1.x -this.x)+(p1.y-this.y)*(p1.y-this.y));
    }
    public Point(int x, int y) {
        super();
        this.x = x;
        this.y = y;
    }
    public int getX() {
        return x;
    }
    public void setX(int x) {
        this.x = x;
    }
    public int getY() {
        return y;
    }
    public void setY(int y) {
        this.y = y;
    }
    public Point() {
        super();
        x = y =0;
    }
    @Override
    public String toString() {
        return "Point [x=" + x + ", y=" + y + "]";
    }
}
class  Line{
    Point p1;
    Point p2;

    public Line(Point p1, Point p2) {
        this.p1 = p1;
        this.p2 = p2;
    }

    public Point getP1() {
        return p1;
    }

    public void setP1(Point p1) {
        this.p1 = p1;
    }

    public Point getP2() {
        return p2;
    }

    public void setP2(Point p2) {
        this.p2 = p2;
    }
    public double getLength(){
        return Math.sqrt(Math.pow((p1.getX()- p2.getX()),2)+Math.pow((p1.getY()- p2.getY()),2));
    }

    @Override
    public String toString() {
        return "Line ["+"p1= "+ p1.toString()+" + , p2= + "+p2.toString()+" + ]";
    }
}

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        Line[] Lines=new Line[n];
        int[][] ints=new int[n][4];
        for (int i = 0; i < n; i++) {
            int p1x=scanner.nextInt();
            int p1y=scanner.nextInt();
            int p2x=scanner.nextInt();
            int p2y=scanner.nextInt();
            Point p1=new Point(p1x,p1y);
            Point p2=new Point(p2x,p2y);
            Lines[i]=new Line(p1,p2);
        }
        for (int i = 0; i < n; i++) {
            Lines[i].toString();
        }
    }
    public static void main4(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int[][] ints = new int[n][m];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                ints[i][j] = scanner.nextInt();
            }
        }
        boolean det = false;
        for (int i = 0; i < n; i++) {
            int maxRow = ints[i][0];
            int colIndex = 0;
            for (int j = 1; j < m; j++) {
                if (ints[i][j] > maxRow) {
                    maxRow = ints[i][j];
                    colIndex = j;
                }
            }
            boolean det2= true;
            for (int k = 0; k < n; k++) {
                if (ints[k][colIndex] < maxRow) {
                    det2 = false;
                    break;
                }
            }
            if (det2) {
                System.out.println(i + " " + colIndex);
                det = true;
            }
        }
        if (!det) {
            System.out.println("0");
        }
    }
    public static void main3(String[] args) {
        Scanner in = new Scanner(System.in);
        int n=in.nextInt();
        int[] ints=new int[n+1];
        for(int i=0;i<n;i++){
            ints[i]=in.nextInt();
        }
        ints[n]=in.nextInt();
        Arrays.sort(ints);
        for(int i=0;i<n+1;i++){
            if(i!=n)System.out.print(ints[i]+" ");
            else System.out.print(ints[i]);
        }
    }
    public static void main2(String[] args) {
        Scanner in = new Scanner(System.in);
        int id = in.nextInt();
        String name = in.next();
        double balance = in.nextDouble();
        double annualInterestRate = in.nextDouble();
        Account account = new Account(id, name, balance, annualInterestRate);
        account.withdraw(2500);
        account.deposit(3000);
        account.print();
        in.close();
    }
    public static void main1(String[] args) {
        Scanner scanner=new Scanner(System.in);
        double r=scanner.nextDouble();
        double h=scanner.nextDouble();
        Circle c = new Circle(r);
        Column column=new Column();
        column.setBottom(c);
        column.setHeight(h);
        System.out.printf("底面面积和周长分别为：%.2f %.2f\n",column.getBottom().getArea(),column.getBottom().getLength());
        System.out.printf("体积为：%.2f\n",column.getVolume());
        scanner.close();
    }
}

